.class public Llt/noframe/gpsfarmguide/clicks_chain/DeselectHandler;
.super Llt/noframe/gpsfarmguide/clicks_chain/ClickHandler;
.source "DeselectHandler.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 11
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/clicks_chain/ClickHandler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleRequest(Lcom/google/android/gms/maps/model/LatLng;)Llt/noframe/gpsfarmguide/models/MeasuringModel;
    .locals 2

    .line 17
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 18
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->unmarkMeasure()V

    .line 19
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object v0

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Llt/noframe/gpsfarmguide/gui/Gui;->clearGui(I)V

    .line 20
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object v0

    new-instance v1, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;

    invoke-direct {v1}, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;-><init>()V

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    .line 22
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/clicks_chain/ClickHandler;->nextHandler:Llt/noframe/gpsfarmguide/clicks_chain/ClickHandler;

    if-eqz v0, :cond_1

    .line 23
    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/clicks_chain/ClickHandler;->handleRequest(Lcom/google/android/gms/maps/model/LatLng;)Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p1

    return-object p1

    :cond_1
    const/4 p1, 0x0

    return-object p1
.end method
